/**
 * meiguang8.com
 * Copyright (C) 2016-2019 All Rights Reserved.
 */
package com.yuanchuang.yp.mall.web.admin.common.exception;

import com.yuanchuang.yp.framework.common.exception.BaseException;

import java.text.MessageFormat;

/**
 * class_name: AccountException
 * package: com.yuanchuang.yp.mall.web.admin.exception
 * describe: TODO
 * @author: yuanyuan.zhu
 * creat_date: 2019/7/11
 * creat_time: 15:36
 **/
public class AccountException  extends BaseException {


    public AccountException(String code, String msgFormat, Object... args) {
        super(code, msgFormat, args);
    }
    /**
     * 实例化异常
     *
     * @param msgFormat
     * @param args
     * @return 异常类
     */
    @Override
    public BaseException newInstance(String msgFormat, Object... args) {
        return new AccountException(code, MessageFormat.format(msgFormat, args));
    }
}
